@font-face {
    font-family: 'cm';
    src: url("font/Begilas.otf");
}

@font-face {
    font-family: 'huayuan';
    src: url("font/花园肉丸.ttf");
}

body {
    /*背景图片*/
    background-image: url("../img/productBg2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-position: center 4px;
    overflow: hidden;
}


.display {
    padding: 15px;
    width: fit-content;
    min-width: 450px;
    min-height: 400px;
    height: auto;
    max-height: 540px;
    background-color: white;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, .25);
    font-family: cm;
    position: relative;
    top: 20px;
}

.display:hover {
    box-shadow: 0px 0px 30px floralwhite;
    transition: all .2s ease-in-out;
}

#BackLink {
    margin: 0 auto;
    position: relative;
    top: 32px;
}

#BackLink button {
    width: 150px;
    height: fit-content;
    border-radius: 14px;
    border: none;
    background-color: transparent;
    opacity: 60%;
    font-size: 20px;
    font-family: huayuan;
    color: rgb(190, 158, 111);
    display: block;
    float: left;
    margin-left: 50px;
    cursor: pointer;

}

#BackLink button span {
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

#BackLink button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

#BackLink button:hover span {
    padding-right: 25px;
}

#BackLink button:hover span:after {
    opacity: 1;
    right: 0;
}

.PetPicAndName {
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
}


a {
    color: rgb(190, 158, 111);
    display: block;
    margin: 0 auto;
}

/*加入购物车*/
#buyButton {
    width: 30px;
    height: 30px;
    background-image: url(../img/cart.png);
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-position: center;
    overflow: hidden;
    border: none;
    background-color: inherit;
    cursor: pointer;
}



/*表格样式*/
#Catalog table {
    text-align: center;
    table-layout: auto;
    min-width: 400px;
    min-height: 100px;
    max-height: 340px;
    margin: 0 auto;
}

#Catalog2 table {
    text-align: center;
    table-layout: auto;
    min-width: 400px;
    min-height: 100px;
    max-height: 340px;
    margin: 0 auto;
}


#cart {
    max-height: 400px;
    overflow-y: auto;
}

#cart table {
    text-align: center;
    table-layout: auto;
    min-width: 400px;
    min-height: 100px;
    margin: 0 auto;
}

#Catalog th, td {
    margin-left: auto;
    margin-right: auto;
    border: 1px solid black;
}

#Catalog2 th, td {
    margin-left: auto;
    margin-right: auto;
    border: 1px solid black;
}

.ButtonNext {
    font-family: huayuan;
    width: fit-content;
    position: relative;
    left: 280px;
    padding: 5px;
    background-color: inherit;
}

/** 滚动条美化 **/
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
    margin-left: 5px;
    width: 8px;
    height: 8px;
    background-color: white;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
    margin-left: 5px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #9E9E9E;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(190, 158, 111);
    /*鼠标移入滑块变色*/
}


#draw-border {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-family: cm;
}

#draw-border button {
    border: 0;
    background: none;
    text-transform: uppercase;
    color: rgb(190, 158, 111);
    font-weight: bold;
    position: relative;
    outline: none;
    padding: 10px 20px;
    box-sizing: border-box;
    font-family: cm;
}

#draw-border button::before, button::after {
    box-sizing: inherit;
    position: absolute;
    content: '';
    border: 2px solid transparent;
    width: 0;
    height: 0;
}

#draw-border button::after {
    bottom: 0;
    right: 0;
}

#draw-border button::before {
    top: 0;
    left: 0;
}

#draw-border button:hover::before, button:hover::after {
    width: 100%;
    height: 100%;
}

#draw-border button:hover::before {
    border-top-color: rgb(190, 158, 111);
    border-right-color: rgb(190, 158, 111);
    transition: width 0.3s ease-out, height 0.3s ease-out 0.3s;
}

#draw-border button:hover::after {
    border-bottom-color: rgb(190, 158, 111);
    border-left-color: rgb(190, 158, 111);
    transition: border-color 0s ease-out 0.6s, width 0.3s ease-out 0.6s, height 0.3s ease-out 1s;
}
